Optimal. Leaf size=2 \[ \tanh (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 2, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {3254, 3852, 8}
\begin {gather*} \tanh (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3254
Rule 3852
Rubi steps
\begin {align*} \int \frac {1}{1+\sinh ^2(x)} \, dx &=\int \text {sech}^2(x) \, dx\\ &=i \text {Subst}(\int 1 \, dx,x,-i \tanh (x))\\ &=\tanh (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 2, normalized size = 1.00 \begin {gather*} \tanh (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(16\) vs.
\(2(2)=4\).
time = 0.38, size = 17, normalized size = 8.50
method | result | size |
risch | \(-\frac {2}{1+{\mathrm e}^{2 x}}\) | \(11\) |
default | \(\frac {2 \tanh \left (\frac {x}{2}\right )}{\tanh ^{2}\left (\frac {x}{2}\right )+1}\) | \(17\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 10 vs.
\(2 (2) = 4\).
time = 0.27, size = 10, normalized size = 5.00 \begin {gather*} \frac {2}{e^{\left (-2 \, x\right )} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 20 vs.
\(2 (2) = 4\).
time = 0.42, size = 20, normalized size = 10.00 \begin {gather*} -\frac {2}{\cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 14 vs.
\(2 (2) = 4\).
time = 0.28, size = 14, normalized size = 7.00 \begin {gather*} \frac {2 \tanh {\left (\frac {x}{2} \right )}}{\tanh ^{2}{\left (\frac {x}{2} \right )} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 10 vs.
\(2 (2) = 4\).
time = 0.42, size = 10, normalized size = 5.00 \begin {gather*} -\frac {2}{e^{\left (2 \, x\right )} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 10, normalized size = 5.00 \begin {gather*} -\frac {2}{{\mathrm {e}}^{2\,x}+1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________